//
//  Untility.h
//  Yopark
//
//  Created by 王家骏 on 14-10-9.
//  Copyright (c) 2014年 developer. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface Untility : NSObject
//获取本地沙盒里的图片
+ (UIImage *)getImageUnderNSBundle:(NSString *)imageName;
//判断空字符串
+ (BOOL)isBlankString:(NSString *)string;
//通过色号返回uicolor
+ (UIColor *)colorFromHexRGB:(NSString *)inColorString;
//截取图片
+ (UIImage *)imageFromImage:(UIImage *)image inRect:(CGRect)rect;

//当前正确的宽高
+ (CGSize)getScreen;
//打电话：
+ (void) makeCall:(NSString *)phoneNumber;
//验证手机号是否合法
+ (BOOL) validateMobileWithString :(NSString*)mobile;

+ (NSDate *)getNowDateFromatAnDate:(NSDate *)anyDate;

//返回时间字符串
+ (NSString*) stringFromFomate:(NSDate*)date formate:(NSString*)formate;

+ (NSDate *) dateFromFomate:(NSString *)datestring formate:(NSString*)formate;
+ (BOOL)validateUserName:(NSString *)name;
+ (BOOL)validateEmail:(NSString *)email;
+ (BOOL)validateMobile:(NSString *)mobile;
+ (BOOL)validateIdentityCard: (NSString *)identityCard;

/**
 *  获取用户id
 *
 *  @return 用户id
 */
+ (NSString *)getUserId;
+ (NSString *)getUserPhoneNumber;
@end
